home *** CD-ROM | disk | FTP | other *** search
- package
- {
- import mx.core.IFlexModuleFactory;
- import mx.skins.halo.ButtonSkin;
- import mx.styles.CSSStyleDeclaration;
- import mx.styles.StyleManager;
-
- public class _ButtonStyle
- {
- public function _ButtonStyle()
- {
- super();
- }
-
- public static function init(param1:IFlexModuleFactory) : void
- {
- var style:CSSStyleDeclaration = null;
- var fbs:IFlexModuleFactory = param1;
- style = StyleManager.getStyleDeclaration("Button");
- if(!style)
- {
- style = new CSSStyleDeclaration();
- StyleManager.setStyleDeclaration("Button",style,false);
- }
- if(style.defaultFactory == null)
- {
- style.defaultFactory = function():void
- {
- this.paddingLeft = 3;
- this.fontWeight = "bold";
- this.upSkin = ButtonSkin;
- this.verticalGap = 2;
- this.overSkin = ButtonSkin;
- this.selectedDisabledSkin = ButtonSkin;
- this.textAlign = "center";
- this.cornerRadius = 4;
- this.selectedDownSkin = ButtonSkin;
- this.paddingRight = 3;
- this.selectedUpSkin = ButtonSkin;
- this.selectedOverSkin = ButtonSkin;
- this.downSkin = ButtonSkin;
- this.horizontalGap = 2;
- this.disabledSkin = ButtonSkin;
- };
- }
- }
- }
- }
-
-